package com.developmentReformProject.enums;

/**
 * 用户权限枚举
 */
public enum AdminPowerEnum {
    ADMINPOWER_ADMIN(1,"管理员"),
    ADMINPOWER_SYSTEM(0,"系统管理员"),
    BOSS(2,"领导");

    private Integer value;
    private String description;

    public int getValue() {
        return value;
    }
    public String getDescription() {
        return description;
    }

    AdminPowerEnum(int value, String description){
        this.value=value;
        this.description=description;
    }

    public static String valueToDESC(int value){
        for(AdminPowerEnum adminPowerEnum:AdminPowerEnum.values()){
            if(value==adminPowerEnum.getValue()){
                return adminPowerEnum.getDescription();
            }
        }
        return null;
    }
}
